package in.muton.edushare.wicket.converters.choicerenderers;

import org.apache.wicket.markup.html.form.IChoiceRenderer;

import com.edushare.common.vo.Messages;

public class EventTypeRenderer implements IChoiceRenderer<Integer> {
	private static final long serialVersionUID = 8615936374378298002L;

	public Object getDisplayValue(Integer object) {
		switch (object) {
		case Messages.PRIVACY_TYPE_PUBLIC:
			return "Public";
		case Messages.PRIVACY_TYPE_SHARED:
			return "Shared";
		case Messages.PRIVACY_TYPE_PRIVATE:
			return "Private";
		}
		return null;
	}

	public String getIdValue(Integer object, int index) {
		return object.toString();
	}

}
